namespace HouseManger.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("HouseInfo")]
    public partial class HouseInfo
    {
        public int Id { get; set; }

        [Required]
        [StringLength(32)]
        public string Name { get; set; }

        public decimal Area { get; set; }

        public decimal Price { get; set; }

        public int FloorCount { get; set; }

        public int Floot { get; set; }

        public int State { get; set; }

        [Column(TypeName = "text")]
        [Required]
        public string Describe { get; set; }

        public decimal Years { get; set; }

        public int TypeId { get; set; }

        public virtual HouseType HouseType { get; set; }
    }
}
